package com.shiroha.chat.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum MessageType {
    TEXT(1L, "文本"),
    EMOJI(2L, "表情"),
    VOICE(3L, "语音"),
    IMAGE(4L, "图片"),
    FILE(5L, "文件"),
    SHARE(6L, "作品分享");

    @EnumValue
    @JsonValue
    private final Long value;
    private final String description;

    MessageType(Long value, String description) {
        this.value = value;
        this.description = description;
    }
}
